/**
  * @file		grayscale.h
  * @brief		灰度传感器头文件。
  * 	
  * @note		
  *	
  * @author 	FFerryman
  * @date		2025-7-30
  * @version 	1.0
  */
#ifndef __GRAYSCALE_H
#define __GRAYSCALE_H

#ifdef __cplusplus
extern "C" {
#endif

#include "zf_common_headfile.h"

#define CHANNAL_0	B14
#define CHANNAL_1	A0
#define CHANNAL_2	A1
#define CHANNAL_3	B12
#define CHANNAL_4	B3
#define CHANNAL_5	B2
#define CHANNAL_6	B16
#define CHANNAL_7	B15

//flash数据所对应的变量
#define WEIGHT1	&flash_union_buffer[0].int8_type
#define WEIGHT2	&flash_union_buffer[1].int8_type
#define WEIGHT3	&flash_union_buffer[2].int8_type

//extern int8_t Weight;

void grayscale_init(void);
float grayscale_get_data(void);
uint8_t grayscale_detect_corner(void);

#ifdef __cplusplus
}
#endif

#endif
